function Exit66RoundedBox(className) {
    this._className = className;
    
    this._element = null;
    this._contentBox = null;
    this._rbTop = null;
    this._rbBot = null;
    this._height = 0;
    this._init();
}

Exit66RoundedBox.prototype._init = function() {
    var box = document.createElement('div');
    box.className = this._className;
    
    var top = document.createElement('div')
    top.className = 'rbtop';
    top.appendChild(document.createElement('div'));
    box.appendChild(top);
    
    var content = document.createElement('div');
    content.className = 'rbcontent';
    box.appendChild(content);
    
    var bottom = document.createElement('div');
    bottom.className = 'rbbot';
    bottom.appendChild(document.createElement('div'));
    box.appendChild(bottom);

    this._element = box;
    this._contentBox = content;
    this._rbTop = top;
    this._rbBot = bottom;
}

Exit66RoundedBox.prototype.addToParent = function(parent) {
    parent.appendChild(this._element);
}

Exit66RoundedBox.prototype.hasParent = function() {
    return (this._element.parent == null)
}

Exit66RoundedBox.prototype.addToContent = function(content) {
    this._contentBox.appendChild(content);
}

Exit66RoundedBox.prototype.getContentBox = function() {
    return this._contentBox;
}

Exit66RoundedBox.prototype.getElement = function() {
    return this._element;
}

Exit66RoundedBox.prototype.setOnClick = function(f) {

}

Exit66RoundedBox.prototype.removeFromParent = function() {
    if (this._element.parentNode)
        this._element.parentNode.removeChild(this._element);
}

Exit66RoundedBox.prototype.setHeight = function(height) {
    this._height = height;
    if (height != 0) {
        this._element.style.height = height;
        this._contentBox.style.height = height - 
            (this._rbTop.offsetHeight + this._rbBot.offsetHeight);

    }
}